package objects;

import java.io.Serializable;
import java.util.Random;

import map.Level;

public class Enemy extends CombatEntity implements Serializable {

	
	private static final long serialVersionUID = 6327915659997441089L;
	private int xPosition;
	private int yPosition;
	
	private EnemyType enemyType;
	
	public Enemy(int xPosition, int yPosition, EnemyType enemyType) {
		super(15,0,5,5);
		this.xPosition = xPosition;
		this.yPosition = yPosition;
		this.enemyType = enemyType;
	}

	public int getxPosition() {
		return xPosition;
	}

	public void setxPosition(int xPosition) {
		this.xPosition = xPosition;
	}

	public int getyPosition() {
		return yPosition;
	}

	public void setyPosition(int yPosition) {
		this.yPosition = yPosition;
	}
	
	public void move(Level room) {
		
		if(new Random().nextBoolean()) {
			xPosition++;
		} else {
			xPosition--;
		}
		
	}

	public EnemyType getEnemyType() {
		return enemyType;
	}

	public void setEnemyType(EnemyType enemyType) {
		this.enemyType = enemyType;
	}	
	
	
	
}
